﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _0517病例系统
{
    public partial class jiancha : Form
    {
        public jiancha()
        {
            InitializeComponent();
        }

        public static string cc,hh;
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                cc = dataGridView1.CurrentRow.Cells["检查项目"].Value.ToString();
                hh = dataGridView1.CurrentRow.Cells["单价"].Value.ToString();

            }

            this.Hide();
            _0517.frmSer ser = new _0517.frmSer();
            ser.Show();
        }

        private void jiancha_Load(object sender, EventArgs e)
        {
            string strSql = "";
            DataSet ds;
            strSql = "select * from Messs where 1=1";
            DataAccess data = new DataAccess();
            data.dataCon();
            ds = data.getDataset(strSql);
            this.dataGridView1.DataSource = ds.Tables["Table"];
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            _0517.frmSer ser = new _0517.frmSer();
            ser.Show();
        }
    }
}
